@layout("/common/_container.html"){
<link href="https://pynnn.oss-cn-hangzhou.aliyuncs.com/tcShop.css?v=20200628" rel="stylesheet">
<div class="ibox float-e-margins " style="height: 100%">
    <div class="ibox-content" style="padding: 0;height: 100%">
        <div id="isDealInfoForm" style="height: 100%">
            <div style="display: none">
                <input id="arrears" value="0">
                <input id="totleFoldingPays" value="">
                <input type="hidden" id="id" value="${customerInfo1.id}">
                <input type="hidden" id="customerId" value="${customerId}">
                <input type="hidden" id="tabId" value="${tabId}">
                <input type="hidden" id="roleName" value="">
                <input type="hidden" id="depositPayServiceArray" value="">
                <input type="hidden" id="treatmentUnitId" value="">
                <input type="hidden" id="reservationsId" value="${customerInfo1.reservationsId}">
                <input type="hidden" id="medicalRecordNumber" value="${customerInfo1.medicalRecordNumber}">
                <input type="hidden" id="custComeFrom" value="${customerInfo1.oneChannel}">
                <input type="hidden" id="customerSexValue" value="${customerInfo1.customerSex}">
                <input type="hidden" id="customerNameValue" value="${customerInfo1.customerName}">
                <textarea type="hidden" id="arrearsRemarks" name="arrearsRemarks" rows=12 cols=150></textarea>
                <input type="hidden" id="customerName" value="${customerInfo1.customerName}">
                <input type="hidden" id="huifang" value="${huifang}">
                <input type="hidden" id="isDorj" value="tc">
                <input type="hidden" value="${isKz}" id="isKz"/>
                <input type="hidden" id="treatmentUnit" value="${customerInfo1.treatmentUnit}"/>
                <input type="hidden" id="arrivalTimeStr" value="${arrivalTimeStr}"/>
                <input type="hidden" id="arrivalStore" value="${customerInfo1.arrivalStore}">
                <input type="hidden" id="payservicenameValue" value="${customerInfo1.expenditureProject}">
                <input type="hidden" id="outpatientNameValue" value="${outpatientName}">
                <input type="hidden" id="fieldTcValues" value="${customerInfo1.fieldTc}">
                <input type="hidden" id="userName" value="${userName}">
                <input type="hidden" id="roleNameLogin" value="${roleNameLogin}">
                <input type="hidden" id="dealyesLogin" value="${dealyesLogin}">
                <input type="hidden" id="isRefundAdminValue" value="${isRefundAdmin}">
                <input type="hidden" id="vipLevelName" value="${customerInfo1.vipLevelName}">
                <input type="hidden" id="discountDiscount" value="${customerInfo1.discountDiscount}">
            </div>
            <div>
                <div class="consultantHeader">
                    <span style="font-size: 1.5em;font-weight: bolder;">${customerInfo1.customerName}</span>
                    <span>${customerInfo1.customerAge}</span>
                    <span>${customerInfo1.sex}</span>
                    <span>电话：${customerInfo1.customerPhone}</span>
                    <span>病历号：${customerInfo1.medicalRecordNumber}</span>
                    <span>当前客户状态：${recentlyCustomerStatus}</span>
                    <span>现场TC：${customerInfo1.fieldTc}</span>
                    <span>医生：${customerInfo1.doctor}</span>
                    <span style="font-size: 1.5em;font-weight: bolder;color: black;">科室：<span id="treatmentUnitHtml">${customerInfo1.treatmentUnit}</span></span>
                    <span><button class="btn returnBtn" type="button" style="right:295px;" onclick="ConsultantInfoDlg.subsequent('${customerId}')">新建预约</button></span>
                    <span><button type="button" class="btn returnBtn" onclick="ConsultantInfoDlg.changeTreatmentUnit()" style="right: 196px;">变更科室</button></span>
                    <span><button id="reloadBtn" type="button" class="btn returnBtn" onclick="ConsultantInfoDlg.flush()" style="right: 132px;">刷新</button></span>
                    <span><button type="button" class="btn returnBtn" onclick="ConsultantInfoDlg.close()" id="cancel">返回上一级</button></span>
                </div>
            </div>
            <div class="tcContent">
                <div class="nav_table" id="consultantInfoForm" >
                    <ul class="nav nav-tabs nav_ul" role="tablist" id="navBox">
                        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">患者信息</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#doctor" aria-controls="doctor">开单操作</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#dealed" aria-controls="dealed">开单记录</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#doctorNo" aria-controls="doctorNo">看诊/回访</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#settings" aria-controls="settings">回访记录</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#visitt" aria-controls="visitt">就诊记录</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#messages" aria-controls="messages">影像</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#profile" aria-controls="profile">病历</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#charge" aria-controls="charge">收费记录</a></li>
                        <li role="presentation"><a role="tab" data-toggle="tab" href="#member" aria-controls="member">会员信息</a></li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content content_box" id="contentBox">
                        <div role="tabpanel" class="tab-pane active" id="home">
                            @layout("/tcCenter/consultant/consultant_information.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="doctor">
                            @layout("/tcCenter/consultant/open_bill1.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="dealed">
                            <div class="home_box">
                                <div id="payServiceInfoTitle" style="position: absolute;top: 60%;left: 50%;transform: translate(-50%,-50%);"></div>
                                <div style="padding: 10px 10px 0;">
                                    <#openBillTimeList  id="openBillTimeList" list="${payServiceInfoListS}"/>
                                </div>
                            </div>
                        </div>
                        <div role="tabpanel" class="tab-pane" id="doctorNo">
                            @layout("/tcCenter/consultant/open_bill2.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="settings">
                            @layout("/tcCenter/consultant/tc_follows.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="visitt">
                            <div class="home_box" style="padding: 10px 10px 0;">
                                <div style="height: 100%;background: white;padding: 12px 20px;">
                                    <#sortVisitDetail1  id="sortVisitDetail" list="${customerInfoList}"/>
                                </div>
                            </div>
                        </div>
                        <div role="tabpanel" class="tab-pane" id="messages" >
                            @layout("/doctorLooked/upload_icon1.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="profile">
                            @layout("/doctorLooked/caseInfoPages.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="charge">
                            @layout("/tcCenter/consultant/consultant_chargeDetails.html"){
                            @}
                        </div>
                        <div role="tabpanel" class="tab-pane" id="member">
                            @layout("/tcCenter/consultant/consultant_member1.html"){
                            @}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/tcCenter/consultant/consultantToDetail_openBill.js?v=20200628"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/is_deal_info.js?v=20200605"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/consultant_infos.js?v=20200628"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/consultant_opening.js?v=20200628"></script>
<script>
    var arr = $("#huifang").val();
    var strs = arr.split(",");
    var str1 = '';
    var checkoutMethodHtml = '';
    $(function () {
        for(var i=0;i<strs.length;i++){
            str1 = "<p>"+strs[i]+"</p>";
            if(strs[i] != ""){
                $("#further").append(str1)
            }
        }
        checkoutMethodHtml = "${checkoutMethodHtml}";
        var payServiceInfoList1 = "${payServiceInfoListS}";
        if(payServiceInfoList1 == "[]"){
            payServiceInfoList1 = JSON.parse(payServiceInfoList1);
            if(payServiceInfoList1.length <= 0){
                var img = '<div><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/opening.png" alt=""></div>';
                $("#payServiceInfoTitle").html(img)
            }
        }
    });
</script>
@}